package net.lunar.xml.model.vo.comm;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import lombok.Data;
import net.lunar.xml.model.vo.Address;
import net.lunar.xml.model.vo.User;

@Data
@XmlRootElement(name = "Message")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso({User.class, Address.class})
public class Request<T> {
	
	@XmlElement(name = "Head")
	private Head head;
	
	@XmlAnyElement
	private T body;

}
